//---------------------------------------------------------------------------

#ifndef FConvH
#define FConvH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "PHDS.h"
#include "Geracao.h"
//---------------------------------------------------------------------------
class TFConv1 : public TForm
{
__published:	// IDE-managed Components
        PHDataSource *PHDS1;
 void __fastcall FormDestroy(TObject *Sender);
private:	// User declarations
        void __fastcall Conversao_1(int Empresa);
        void __fastcall ProcessaConversao_1(TObject *Sender);
        void __fastcall Conversao_2(int Empresa);
        void __fastcall ProcessaConversao_2(TObject *Sender);
        void __fastcall Conversao_3(int Empresa);
        void __fastcall ProcessaConversao_3(TObject *Sender);
        void __fastcall Conversao_4(int Empresa);
        void __fastcall ProcessaConversao_4(TObject *Sender);
        
        void __fastcall PreparaDS(PHDataSource *DSGeral,int CodEmp,
                                  PHTable *TBL);
        void __fastcall PreparaDS(PHDataSource *DSGeral,int CodEmp,
                                  PHTable *TBL,bool Limpa);
        void __fastcall PreparaDSPrin(PHDataSource *DSGeral,PHTable *TBL);
        void __fastcall PreparaDSPrin(PHDataSource *DSGeral,PHTable *TBL,bool Limpa);
        int __fastcall AbArq(AnsiString NomeArq);
        bool __fastcall VerificaValoresFaturamento(void);
        void __fastcall GravaMemo(PHDataSource *DS,AnsiString Texto,long &Posicao,char TipoTexto);
        int CodEmp;
        AnsiString NomeEmp;
        AnsiString Titulo;
        bool ErrosConv1;
        bool ErrosEmpConv1;
        struct REAJUSTE * Reaj;
        TGeracao *Geracao;

public:		// User declarations
        __fastcall TFConv1(TComponent* Owner);
        void __fastcall Conversoes(void);
        bool ProcessoOk;
        bool TeveConversao;
};
//---------------------------------------------------------------------------
extern PACKAGE TFConv1 *FConv1;
extern int VERSAOATUALCONVERSAO;
//---------------------------------------------------------------------------
#endif

